package com.ilancuo.thinkinjava.chapter_19;

public enum OzWitch {
    WEST("Miss Gluch, aka the wicked Witch of the West"),
    NORTH("Glinda, the Good Witch of the North"),
    EAST("Wicked Witch of the East, wearer of the Ruby Slippers, crushed by Dorothy's house"),
    SOUTH("Good by interface, but missing");

    private String description;

    private OzWitch(String desc) {
        this.description = desc;
    }

    public String getDescription() {
        return description;
    }

    public static void main(String[] args) {
        for (OzWitch witch : OzWitch.values())
            System.out.println(witch + ": " + witch.getDescription());
    }
}
